//
//  LoginView.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/8.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "LoginView.h"
@interface LoginView()
@property (weak, nonatomic) IBOutlet UIButton *sureButton;

@end
@implementation LoginView
+ (instancetype)xib
{
    return [[NSBundle mainBundle] loadNibNamed:@"LoginView" owner:self options:nil][0];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    
    self.alpha = 1;
    if (iPhoneX){
        self.frame = CGRectMake(0,88, ScreenWidth, ScreenHeight-88-49-30);
    }else{
        self.frame = CGRectMake(0,64, ScreenWidth, ScreenHeight-64-49);
    }
    
    [self.sureButton setBackgroundImage:[UIImage imageWithColor:RGBColor(86, 54, 157)] forState:(UIControlStateHighlighted)];
}

- (IBAction)loginAction {
    if (self.loginActionBlock) {
        self.loginActionBlock(@"");
    }
}

@end
